#include #include #define dim 5 typedef enum {false, true} boolean; struct EL2 {int info; struct EL1 *posto; struct EL2 *succ;}; typedef struct EL2 carrozza; struct EL1 {int info; struct EL1 *next;}; typedef struct EL1 posti; boolean multipli(int n, int occ3, int occ5) { scanf("%d", &n); if(n==0) { if (occ3>occ5) return true; else return false; } else if(n%3==0) occ3++; if(n%5==0) occ5++; return multipli(n, occ3, occ5); } void merge(int v1[], int v2[], int v3[]) { int i, j, k; i=0; j=0; k=0; while(k<(2*dim)) { if(j>=dim) {v3[k]=v1[i]; i++;} else if(i>=dim) {v3[k]=v2[j]; j++;} else if(v1[i]>v2[j]) { v3[k]=v2[j]; j++; } else if(v1[i]